#ifndef ALTER_H
#define ALTER_H

#include <QDialog>
#include <QtSql>
#include <QMessageBox>

namespace Ui {
class alter;
}

class alter : public QDialog
{
    Q_OBJECT

public:
    explicit alter(QWidget *parent = 0);
    ~alter();
    void set_type(int a);
    void set_number(QString b);

private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

private:
    Ui::alter *ui;
    int type;         //0:student;1:teacher
    QString number;   //存储当前用户的账号
};

#endif // ALTER_H
